import React from 'react'
import { Route } from 'react-router-dom'
import LoadableComponent from "@/utils/loadable" // 懒加载组件
const UserListPage = LoadableComponent(()=>import('./user/list'))
const AddUserPage = LoadableComponent(()=>import('./user/add'))
// import UserListPage from "./user/list"
// import AddUserPage from "./user/add"


export default class UserIndex extends React.Component {
    render(){
        return (
            <div >
                mock -&gt; user
                {/* 子路由 */}
                <Route path="/mock/userlist" component={UserListPage} />
                <Route path="/mock/useradd" component={AddUserPage} />
            </div>
        )
    }
}

